public class BankAccountMain {

    public static void main(String[] args) {

        // 1.创建一个账户
        BankAccount zhao = new BankAccount();
        zhao.setAccount("赵云");
        zhao.setBalance(300.0);

        System.out.println(zhao);

        // 2.创建第二个账户
        BankAccount zhang = new BankAccount();
        zhang.setAccount("张飞");
        zhang.setBalance(10.0);

        System.out.println(zhang);

        double money = 145.0; // 实际消费了290，每人145

        // 赵云应该扣钱
        zhao.out(money);
        zhang.in(money);

        System.out.println("转账后。。。。。。");
        System.out.println(zhang);
        System.out.println(zhao);
    }
}
